import { JSON } from "../../../../com/mui/serialization/json/JSON";
//class SystemGuideSetterInfo
    
    export  class SystemGuideSetterInfo
    {
        constructor()
        {
            
            this._mapInfo = new Map<any, any> /* flash.utils.Dictionary */();
            this._mapInfo["isFirstTimeUpgradeTenStar"] = "a";
            this._mapInfo["isFirstTimeEquipRecast"] = "b";
            this._mapInfo["isCrossDefenceCopyGuided"] = "c";
            this._mapInfo["isFirstCrossAryadevaSecretCopy"] = "d";
            this._mapInfo["isFirstOpenPetIslandView"] = "e";
            this._mapInfo["isFirstEquipPetEquipment"] = "f";
            this._mapInfo["isFirstPurplePetEquipment"] = "g";
            this._mapInfo["isGodSoulGuild"] = "h";
            this._mapInfo["isFashionBoxFlyWingGuild"] = "i";
            return;
        }

        public get mapInfo(): Map<any, any> /* flash.utils.Dictionary */
        {
            return this._mapInfo;
        }

        public getString(): string
        {
            var loc2=null;
            var loc3=null;
            var loc1=new Object();
            var loc4=0;
            var loc5=this._mapInfo;
            for (loc3 in loc5) 
            {
                loc2 = "defaultI" + loc3.substring(1);
                if (this[loc3] == this[loc2]) 
                {
                    continue;
                }
                loc1[this._mapInfo[loc3]] = this[loc3];
            }
            return JSON.serialize(loc1);
        }

        public deserializeInfo(arg1: string): Object
        {
            var loc2=null;
            if (arg1 == "") 
            {
                return null;
            }
            var loc1=JSON.deserialize(arg1);
            var loc3=0;
            var loc4=this._mapInfo;
            for (loc2 in loc4) 
            {
                if (!loc1.hasOwnProperty(this._mapInfo[loc2])) 
                {
                    continue;
                }
                this[loc2] = loc1[this._mapInfo[loc2]];
            }
            return loc1;
        }

        public getSetterObject(): Object
        {
            var loc2=null;
            var loc1=new Object();
            var loc3=0;
            var loc4=this._mapInfo;
            for (loc2 in loc4) 
            {
                loc1[loc2] = this[loc2];
            }
            return loc1;
        }

        public copy(arg1: SystemGuideSetterInfo, arg2: Boolean=false): void
        {
            var loc1=null;
            var loc2=0;
            var loc3=this._mapInfo;
            for (loc1 in loc3) 
            {
                this[loc1] = arg1[loc1];
            }
            return;
        }

        public setSystemInfo(arg1: string, arg2: Boolean): void
        {
            var loc1=null;
            var loc2=0;
            var loc3=this._mapInfo;
            for (loc1 in loc3) 
            {
                if (loc1 != arg1) 
                {
                    continue;
                }
                this[loc1] = arg2;
                break;
            }
            return;
        }

        /* internal */ /* var */_mapInfo: Map<any, any> /* flash.utils.Dictionary */;

        public /* var */isFirstTimeUpgradeTenStar: Boolean=true;

        public /* var */defaultIsFirstTimeUpgradeTenStar: Boolean=true;

        public /* var */isFirstTimeEquipRecast: Boolean=true;

        public /* var */defaultIsFirstTimeEquipRecast: Boolean=true;

        public /* var */isCrossDefenceCopyGuided: Boolean=false;

        public /* var */defaultIsCrossDefenceCopyGuided: Boolean=false;

        public /* var */isFirstCrossAryadevaSecretCopy: Boolean=true;

        public /* var */defaultIsFirstCrossAryadevaSecretCopy: Boolean=true;

        public /* var */isFirstOpenPetIslandView: Boolean=true;

        public /* var */defaultIsFirstOpenPetIslandView: Boolean=true;

        public /* var */isFirstEquipPetEquipment: Boolean=true;

        public /* var */defaultIsFirstEquipPetEquipment: Boolean=true;

        public /* var */isFirstPurplePetEquipment: Boolean=true;

        public /* var */defaultIsFirstPurplePetEquipment: Boolean=true;

        public /* var */isGodSoulGuild: Boolean=true;

        public /* var */defaultIsGodSoulGuild: Boolean=true;

        public /* var */isFashionBoxFlyWingGuild: Boolean=true;

        public /* var */defaultIsFashionBoxFlyWingGuild: Boolean=true;
    }
